@mixin clear {
    &:after {
        content: '';
        clear: both;
        zoom: 1;
        display: table;
    }
}

.main {
    width: 1200px;
    margin: 50px auto 0;
    p.tle {
        text-align: center;
        font-size: 22px;
        color: #111;
        margin: 0 auto;
        padding-bottom: 20px;
        position: relative;
        &:after {
            content: '';
            width: 30px;
            height: 3px;
            background: #ff6700;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }
    }
    p.desc {
        margin-top: 10px;
        text-align: center;
        color: #aaa;
    }
    //新闻中心
    .news {
        .con {
            width: 100%;
            margin: 20px auto 0;
            @include clear;
            ul {
                @include clear;
                li {
                    width: 25%;
                    height: 400px;
                    overflow: hidden;
                    display: inline-block;
                    padding: 0 10px;
                    box-sizing: border-box;
                    float: left;
                    &:nth-child(1) {
                        padding-left: 0;
                    }
                    &:nth-child(4) {
                        padding-right: 0;
                    }
                    .item {
                        border: 1px solid #eaeaea;
                    }
                    .imghere {
                        width: 100%;
                        height: 200px;
                        position: relative;
                        overflow: hidden;
                        z-index: 0;
                        &:hover {
                            .mask {
                                transform: scale(1);
                            }
                        }
                        .mask {
                            content: '';
                            position: absolute;
                            width: 100%;
                            height: 100%;
                            transform: scale(0, 1);
                            opacity: 0.2;
                            background: #000;
                            transition: all 0.5s ease;
                            top: 0;
                            left: 0;
                            z-index: 1;
                        }
                        img {
                            width: 100%;
                            height: 100%;
                            display: inline-block;
                        }
                        .time {
                            position: absolute;
                            bottom: 0;
                            right: 0;
                            background: #262626;
                            text-align: center;
                            color: #fff;
                            font-size: 14px;
                            padding: 10px 15px;
                            line-height: 20px;
                            .data {
                                font-size: 25px;
                                font-style: italic;
                            }
                        }
                    }
                    .newsdetail {
                        padding: 20px;
                        .tle1 {
                            font-size: 18px;
                            color: #242424;
                            font-weight: 700;
                            line-height: 22px;
                            text-align: left;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            &:hover {
                                color: #ff6700;
                            }
                        }
                        .flw {
                            margin-top: 10px;
                            padding: 5px 0;
                            font-size: 14px;
                            color: #9a9a9a;
                            span {
                                padding-right: 12px;
                                border-right: 1px solid #9a9a9a;
                                margin-right: 12px;
                            }
                            label i {
                                margin-right: 5px;
                            }
                        }
                        .detail {
                            margin-top: 15px;
                            color: #898989;
                            line-height: 1.5;
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
    // 案例
    .demo {
        margin-top: 40px;
        .con {
            width: 1200px;
            margin: 20px auto;
            ul {
                @include clear;
                li {
                    width: 25%;
                    float: left;
                    padding: 0 15px;
                    box-sizing: border-box;
                    cursor: pointer;
                    &:nth-child(1) {
                        padding-left: 0;
                    }
                    &:nth-child(4) {
                        padding-right: 0;
                    }
                    .item {
                        border: 1px solid #e3e5e6;
                        height: 260px;
                        position: relative;
                        &:hover {
                            .desc {
                                transform: scale(1,1);
                            }
                        }
                        img {
                            display: inline-block;
                            width: 100%;
                            height: 100%;

                        }
                    }
                    .desc {
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        top: 0;
                        left: 0;
                        transition: all 0.3s;
                        transform: scale(1,0);
                        .mask {
                            width: 100%;
                            height: 100%;
                            position: absolute;
                            top: 0;
                            left: 0;
                            background: #000;
                            opacity: 0.6;
                            z-index: 1;
                        }
                        .cont {
                            width: 100%;
                            height: 100%;
                            position: absolute;
                            top: 0;
                            left: 0;
                            text-align: center;
                            padding: 30px 0;
                            z-index: 2;
                            .p1 {
                                font-size: 20px;
                                color: #fff;
                                font-weight: 500;
                                margin-bottom: 10px;
                            }
                            .p3 {
                                color: #ff6700;
                                font-size: 20px;
                                position: relative;
                                padding-bottom: 10px;
                                margin-bottom: 15px;
                                &:after {
                                    content: '';
                                    width: 20px;
                                    height: 2px;
                                    background: #FF6600;
                                    position: absolute;
                                    bottom: 0;
                                    left: 50%;
                                    transform: translateX(-50%);
                                }
                            }
                            .p4 {
                                font-size: 14px;
                                color: #f1f1f1;
                                line-height: 1.5;
                                padding: 0 20px;
                                text-align: left;
                            }
                        }
                    }
                }
            }
        }
    }
    // 安装工艺
    .tec {
        margin: 40px 0 0;
        .imgleft{
            >div{
                float:left;
            }
        }
        .imgrgt{
            >div{
                float:right;
            }
        }
        .con {
            width: 1200px;
            margin: 30px auto;
            border: 1px solid #e3e5e6;
            ul{
                li{
                    @include clear;
                    width:100%;
                    height: 396px;
                    .imgarea{
                        width:60%;
                        height: 100%;
                        img{
                            width: 100%;
                            height: 100%;

                        }
                    }
                    .word{
                        width:40%;
                        height: 100%;
                        padding: 20px 0;
                        background: #fff;
                        position: relative;
                        box-sizing: border-box;
                        .wordinner{
                            display: inline-block;
                            margin:0 auto;
                            line-height: 2;
                            color:#333;
                            position: absolute;
                            left:50%;
                            top:30px;
                            transform:translateX(-50%);
                            h2{
                                font-size: 24px;
                                white-space: nowrap;
                                i{
                                    margin-right: 8px;
                                    color: #FF6600;
                                }
                            }
                            p{
                                color:#777;
                                font-size: 14px;
                                margin-top: 20px;
                            }
                            >a{
                                font-size:18px;
                                color:#FF6600;
                                margin-top:20px;
                                display: inline-block;
                                i{
                                    margin-left:8px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    //  选择我们
    .selus {
        margin: 40px 0 0;
        .con {
            width: 1200px;
            margin: 50px auto;
            ul {
                @include clear;
                li {
                    width: 25%;
                    float: left;
                    padding: 0 15px;
                    box-sizing: border-box;
                    text-align: center;
                    .item {
                        width: 200px;
                        margin: 0 auto;
                        .sp {
                            width: 130px;
                            height: 130px;
                            border: 1px solid #CDD1D4;
                            border-radius: 50%;
                            text-align: center;
                            line-height: 130px;
                            font-size: 50px;
                            background: #fff;
                            color: #305DC3;
                            margin: 0 auto;
                            &:hover {
                                background: #305DC3;
                                i {
                                    color: #fff;
                                }
                            }
                        }
                        .p1 {
                            font-size: 20px;
                            color: #4F575E;
                            line-height: 1.7;
                            margin-top: 15px;
                        }
                        .p2 {
                            font-size: 14px;
                            color: #7E8F9E;
                            line-height: 1.5;
                        }
                    }
                }
            }
        }
    }
}
